package com.example.demo.controller;

import com.example.demo.po.GeneticTestingPackage;
import com.example.demo.service.EsService;
import com.example.demo.service.PackageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: //TODO
 * @ProjectName: demo6
 * @Package: com.example.demo.controller
 * @Author: FX
 * @CreateDate: 2018/10/27 10:12
 * @Version: 1.0
 * Copyright: Copyright (c) 2018
 */
@RestController
@RequestMapping("testes")
public class TestEsController {

    @Autowired
    EsService esService;
    @Autowired
    PackageService packageService;
    @PostMapping
    public String addes(GeneticTestingPackage geneticTestingPackage){
        try {
            boolean a=esService.addes(geneticTestingPackage);

            return null;
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
}
